﻿using System;
using System.Collections.Generic;
using System.Text;

namespace csharpcore7_ch3.Chapt3_6Interface
{
    public interface IUndoable { void Undo(); }
    public interface IRedoable : IUndoable { void Redo(); }

    //实现Iredoable的类必须 实现IUndoable的成员
    public class Do : IRedoable
    {
        public void Redo()
        {
            throw new NotImplementedException();
        }

        public void Undo()
        {
            throw new NotImplementedException();
        }
    }
    class Chapt3_6_1ExtensionInterface
    {
    }
}
